package com.yonyou.gmmc.service.shopping.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_TP_RECEIVE_ADD")
public class TmTpReceiveAdd {
    @Id
    @Column(name = "USER_ADD_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TM_TP_RECEIVE_ADD")
    private Long userAddId;

    @Column(name = "USER_ID")
    private Long userId;

    @Column(name = "RECEIVE_NAME")
    private String receiveName;

    @Column(name = "RECEIVE_PHONE")
    private String receivePhone;

    @Column(name = "FIRST_ADD_CODE")
    private Long firstAddCode;

    @Column(name = "SECOND_ADD_CODE")
    private Long secondAddCode;

    @Column(name = "THIRD_ADD_CODE")
    private Long thirdAddCode;

    @Column(name = "FOURTH_ADD_CODE")
    private Long fourthAddCode;

    @Column(name = "COMMENT_ADD")
    private String commentAdd;

    @Column(name = "EMAIL")
    private String email;

    @Column(name = "POST_CODE")
    private String postCode;

    @Column(name = "DEFAULT_ADD")
    private Long defaultAdd;

    @Column(name = "STATUS")
    private Short status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "CREATE_BY")
    private Long createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    @Column(name = "UPDATE_BY")
    private Long updateBy;

    /**
     * @return USER_ADD_ID
     */
    public Long getUserAddId() {
        return userAddId;
    }

    /**
     * @param userAddId
     */
    public void setUserAddId(Long userAddId) {
        this.userAddId = userAddId;
    }

    /**
     * @return USER_ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return RECEIVE_NAME
     */
    public String getReceiveName() {
        return receiveName;
    }

    /**
     * @param receiveName
     */
    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    /**
     * @return RECEIVE_PHONE
     */
    public String getReceivePhone() {
        return receivePhone;
    }

    /**
     * @param receivePhone
     */
    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    /**
     * @return FIRST_ADD_CODE
     */
    public Long getFirstAddCode() {
        return firstAddCode;
    }

    /**
     * @param firstAddCode
     */
    public void setFirstAddCode(Long firstAddCode) {
        this.firstAddCode = firstAddCode;
    }

    /**
     * @return SECOND_ADD_CODE
     */
    public Long getSecondAddCode() {
        return secondAddCode;
    }

    /**
     * @param secondAddCode
     */
    public void setSecondAddCode(Long secondAddCode) {
        this.secondAddCode = secondAddCode;
    }

    /**
     * @return THIRD_ADD_CODE
     */
    public Long getThirdAddCode() {
        return thirdAddCode;
    }

    /**
     * @param thirdAddCode
     */
    public void setThirdAddCode(Long thirdAddCode) {
        this.thirdAddCode = thirdAddCode;
    }

    /**
     * @return FOURTH_ADD_CODE
     */
    public Long getFourthAddCode() {
        return fourthAddCode;
    }

    /**
     * @param fourthAddCode
     */
    public void setFourthAddCode(Long fourthAddCode) {
        this.fourthAddCode = fourthAddCode;
    }

    /**
     * @return COMMENT_ADD
     */
    public String getCommentAdd() {
        return commentAdd;
    }

    /**
     * @param commentAdd
     */
    public void setCommentAdd(String commentAdd) {
        this.commentAdd = commentAdd;
    }

    /**
     * @return EMAIL
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return POST_CODE
     */
    public String getPostCode() {
        return postCode;
    }

    /**
     * @param postCode
     */
    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    /**
     * @return DEFAULT_ADD
     */
    public Long getDefaultAdd() {
        return defaultAdd;
    }

    /**
     * @param defaultAdd
     */
    public void setDefaultAdd(Long defaultAdd) {
        this.defaultAdd = defaultAdd;
    }

    /**
     * @return STATUS
     */
    public Short getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return CREATE_BY
     */
    public Long getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return UPDATE_BY
     */
    public Long getUpdateBy() {
        return updateBy;
    }

    /**
     * @param updateBy
     */
    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }
}